INCLUDE_DIRECTORIES(
    ./
    ./ZLToolKit/
    ./ZLMediaKit/
    ./Export
)

#使能GOP缓存
add_definitions(-DENABLE_RING_USEBUF)
add_compile_options(-Wno-gnu-designator)

file(GLOB SOURCES ZLToolKit/*/*.cpp ZLMediaKit/*/*.cpp)
add_library(zlmediakit_static STATIC ${SOURCES})

file(GLOB API_SRC Export/*.cpp ZLMediaKit.cpp)
add_library(zlmediakit SHARED ${API_SRC})

find_library(log-lib log)
target_link_libraries(zlmediakit zlmediakit_static ${log-lib})